home *** CD-ROM | disk | FTP | other *** search
- <!--//--><script language="javascript">
- /*
- This file is the script wrapper for the wotktoolui.dll
-
- File Dependencies:
- objTI.js The TKM Installer (ti)
-
- Required Initialization Method:
- WTUI_Init Required to create the control based on the installation status
- */
-
- function WOTKTOOLUI()
- {
- this.Run = WTUI_Run;
- this.GetStatus = WTUI_GetStatus;
- this.GetInstallMedium = WTUI_GetInstallMedium;
- this.GetInstallScenario = WTUI_GetInstallScenario;
- this.GetListOfPlugins = WTUI_GetListOfPlugins;
- this.Init = WTUI_Init;
-
- this.clsid = '8CE63B8E-6B54-11D3-A698-00A0C919893B';
- this.ready = false;
- }
-
- function WTUI_Run(toollist, location, scenario)
- {
- var nRetVal = 0;
-
- if (document.layers) nRetVal = new String(document.tkmwtui.callMethod3("Run", toollist, location, scenario));
- else if (document.all) nRetVal = document.tkmwtui.Run(toollist, location, scenario);
-
- nRetVal = parseInt(nRetVal); // The control returns a string so we have to convert to a number
- return nRetVal;
- }
-
-
- function WTUI_GetStatus()
- {
- var nRetVal = 0;
-
- if (document.layers) nRetVal = new String(document.tkmwtui.callMethod('GetStatus'));
- else if (document.all) nRetVal = document.tkmwtui.GetStatus();
-
- nRetVal = parseInt(nRetVal); // The control returns a string so we have to convert to a number
- return nRetVal;
- }
-
-
- function WTUI_GetInstallMedium()
- {
- var nRetVal = 0;
-
- if (document.layers) nRetVal = new String(document.tkmwtui.callMethod('GetMedium'));
- else if (document.all) nRetVal = document.tkmwtui.GetMedium();
-
- nRetVal = parseInt(nRetVal); // The control returns a string so we have to convert to a number
- return nRetVal;
- }
-
-
- function WTUI_GetInstallScenario()
- {
- var nRetVal = 0;
-
- if (document.layers) nRetVal = new String(document.tkmwtui.callMethod('GetInstallScenario'));
- else if (document.all) nRetVal = document.tkmwtui.GetInstallScenario();
-
- nRetVal = parseInt(nRetVal); // The control returns a string so we have to convert to a number
- return nRetVal;
- }
-
-
- function WTUI_GetListOfPlugins()
- {
- var nRetVal = 0;
-
- if (document.layers) nRetVal = new String(document.tkmwtui.callMethod('GetListOfPlugins'));
- else if (document.all) nRetVal = document.tkmwtui.GetListOfPlugins();
-
- nRetVal = parseInt(nRetVal); // The control returns a string so we have to convert to a number
- return nRetVal;
- }
-
- function WTUI_Init()
- {
- /* If the client is installed and completely up-to-date */
- if (ti.status == ti.INSTALLED)
- {
- if (document.layers) document.write('<embed type="application/x-weboutfitter-container" name="tkmwtui" width="" height="" clsid="{' + this.clsid + '}">');
- else if (document.all) document.write('<object id="tkmwtui" name="tkmwtui" classid="clsid:' + this.clsid + '" height=0 width=0></object>');
- this.ready = true;
- }
- }
-
- var wtui = new WOTKTOOLUI();
- //--></script>